package com.gxa.stu.stu.controller;

import com.gxa.stu.commin.JsonResult;
import com.gxa.stu.pojo.Stu;
import com.gxa.stu.service.StuService;
import com.gxa.stu.util.ResponseUtil;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: zyz
 * @Project: JavaLaity
 * @Pcakage: com.gxa.stu.stu.controller.StuController
 * @Date: 2022年11月02日 16:36
 * @Description:
 */
@RestController
@RequestMapping("/user")
public class StuController {
    @Reference
    StuService stuService;

    @GetMapping("/get")
    public JsonResult get(){
        Stu stu = stuService.get();

        return ResponseUtil.success("成功",stu);
    }

}